package com.zhkjnet.zhyy.dao;

import com.zhkjnet.zhyy.entity.MoneyRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MoneyRecordDao {

    void save(MoneyRecord record);

    List<MoneyRecord> findAllByUserId(@Param("userId") Long userId, @Param("message") String message, @Param("offset") Long offset, @Param("count") Integer count);

    Long countByUserId(@Param("userId")Long userId, @Param("message") String message);

}
